package org.springframework.cloud.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author automannn
 * *Date 2022/2/17
 */
@SpringBootApplication
public class ConfigClientApp {
    public static void main(String[] args) {
      ConfigurableApplicationContext applicationContext= SpringApplication.run(ConfigClientApp.class);
        System.out.println(applicationContext.getEnvironment().getProperty("name"));
    }
}
